// 引入二次封装的 axios
import server from './request'

// 登录模块
export function getLogin(msg){
    let data=server.post('/sys/login',msg)
    return data
}
/**
 * 获取用户信息
 */
 export const getUser = () => {
    let data=server.get('/sys/profile')
    return data
  }

  export const gruser = () => {
    let data=server.get('/user/feature')
    return data
  }

  export const zjuser = () => {
    let data=server.get('/user/chapter')
    return data
  }

  export const yguser = (msg) => {
    let data=server.get('/user-manage/list',msg)
    return data
  }

  export const getImports = (msg) => {
    let data=server.get(`/user-manage/all-list`)
    return data
  }




//左侧导航
// export function menusList(){
//     let data =  server.get('/menus')
//     //在每个接口中,都是可以配置请求头的
//     // let token=localStorage.getItem('token')
//     // let data=server({url:'/menus',method:'get',headers:{'Authorization':token}})
//     return data
// }

